<?php

namespace mpend\modules\search\controllers;

use Yii;
use mpend\components\Controller;
use mpend\modules\search\models\HotWordSearch;

/**
 * 检索页面首页相关接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class HotwordController extends Controller {

    /**
     * @inheritdoc
     */
    protected function verbs() {
        return [
            '*' => ['GET']
        ];
    }

    /**
     * @inheritdoc
     */
    public function actionIndex() {
        $model = new HotWordSearch();
        return $model->search();
    }

}
